import request from '@/utils/request'

// 查询提现订单列表
export function listWithdrawOrder(query) {
  return request({
    url: '/finance/withdrawOrder/list',
    method: 'get',
    params: query
  })
}

// 查询提现订单详细
export function getWithdrawOrder(id) {
  return request({
    url: '/finance/withdrawOrder/' + id,
    method: 'get'
  })
}

// 新增提现订单
export function addWithdrawOrder(data) {
  return request({
    url: '/finance/withdrawOrder',
    method: 'post',
    data: data
  })
}

// 修改提现订单
export function updateWithdrawOrder(data) {
  return request({
    url: '/finance/withdrawOrder',
    method: 'put',
    data: data
  })
}

// 删除提现订单
export function delWithdrawOrder(id) {
  return request({
    url: '/finance/withdrawOrder/' + id,
    method: 'delete'
  })
}

// 导出提现订单
export function exportWithdrawOrder(query) {
  return request({
    url: '/finance/withdrawOrder/export',
    method: 'get',
    params: query
  })
}

// 查询购买者信息
export function listSzUserSimple(data) {
  return request({
    url: '/rules/common/listSzUserSimple',
    method: 'post',
    data: data
  })
}